package face.pay.web.device.bo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Classname DeviceOrderInfo
 * @Description JJL
 * @Date 2019/11/11 13:06
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ExcelTarget("deviceOrderInfo")
public class DeviceOrderInfoBO implements Serializable, IExcelDataModel {


    private static final long serialVersionUID = 4324056773319095029L;

    /**
     * 设备采购者组织名称
     */
    @Excel(name = "买方名称",orderNum = "0")
    @NotNull
    private String ownerName;

    /**
     * 摄像头sn序列号
     */
    @Excel(name = "摄像头sn序列号",orderNum = "1")
    private String cameraSn;

    /**
     * 设备sn序列号
     */
    @Excel(name = "设备sn序列号",orderNum = "2")
    @NotNull
    private String terminalSn;

    /**
     * 归属公司名称
     */
    @Excel(name = "归属公司名称",orderNum = "3")
    @NotNull
    private String orgName;

    @Excel(name = "备注",orderNum = "4")
    private String remarks;

    /**
     * 行号
     */
    private int rowNum;

    /**
     * 获取行号
     * @return
     */
    @Override
    public int getRowNum() {
        return rowNum;
    }
    /**
     *  设置行号
     * @param rowNum
     */
    @Override
    public void setRowNum(int rowNum) {
        this.rowNum = rowNum;
    }
}
